package domain;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author HLF
 * @version V1.0
 * @package domain
 * @date 2021/10/29 20:37
 */
public class Goods implements Serializable {
    private Integer id;
    private String name;
    private BigDecimal price;
    private Integer num;
    private String img;

    public Goods() {
    }

    public Goods(Integer id, String name, BigDecimal price, Integer num, String img) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.num = num;
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", num=" + num +
                ", img='" + img + '\'' +
                '}';
    }
}
